#version 330 core
// vim: set filetype=cpp :vim

uniform uint idx;
uniform int nid;
uniform vec4 color;
in vec3 norm;

layout(location=0) out uint edgeId;
layout(location=1) out int edgePos;
layout(location=2) out vec4 fColor;

void main(void) {
	edgeId=idx;
	edgePos=nid;
	float diff = dot(norm,vec3(0,0,1));
	fColor=color*0.6+0.6*diff;
}

